﻿<?xml version="1.0" encoding="utf-8" ?>
<!--
  NHibernate Configuration
  ========================
-->
  <objects xmlns="http://www.springframework.net">

    <!-- CLIENT SERVICE LOCATOR -->
    <object 
            id="ClientServiceLocatorRef" 
            type="eDirectory.WPF.Services.ClientServiceLocator, eDirectory.WPF"  
            factory-method="Instance" 
            singleton="true">
      
      <property name="ExceptionManager" ref="BusinessExceptionManagerRef" />
      <property name="WarningManager" ref="BusinessWarningManagerRef" />
      <property name="CommandDispatcher" ref="CommandDispatcherRef" />
    </object>
    
    <!-- Business Exception Manager -->
    <object
            id="BusinessExceptionManagerRef"
            type="eDirectory.WPF.Services.BusinessExceptionManager"/>

    <!-- Business Warning Manager -->
    <object
            id="BusinessWarningManagerRef"
            type="eDirectory.WPF.Services.BusinessWarningManager"/>

    <!-- Command Dispatcher -->
    <object
            id="CommandDispatcherRef"
            type="eDirectory.WPF.Services.Wcf.WcfCommandDispatcher, eDirectory.WPF"/>

  </objects>